import { $t } from '@/i18n'

/**
 * 注册表单验证
 */
const registerForm = {
    // 规则
    rules: [ 
        {name: ['required', 'betweenLength:6,40', 'alphaDash']},
        {password: ['required', 'betweenLength:6,40', 'alphaDash']},
    ],

    // 属性的展示名称设置
    attribute: {
        name: $t('message.auth.name.text'),
        password: $t('message.auth.password.text'),
    },
}

export default registerForm